#pragma once
// header
#include <iostream>
#include <string>
#include <ctime>
// namespace
namespace boost_searcher
{
// 日志等级
#define NORMAL 1
#define WARNING 2
#define DEBUG 3
#define FATAL 4
// 日志逻辑
#define searcher_log(LEVEL, MESSAGE) log_out(#LEVEL, MESSAGE, __FILE__, __LINE__)
    void log_out(std::string level, std::string message, std::string file, int line)
    {
        std::cout << "[" << level << "]"
                  << "[" << time(nullptr) << "]"
                  << "[" << message << "]"
                  << "[" << file << ":" << line << "]" << std::endl;
    }
}